package com.bwie.controller;

import com.bwie.pojo.TbCollege;
import com.bwie.service.TbCollegeService;
import com.bwie.utils.R;
import org.bouncycastle.asn1.dvcs.TargetEtcChain;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @projectName: school2211a
 * @package: com.bwie.controller
 * @className: IndexController
 * @author: 杨珂
 * @description: TODO
 * @date: 2025/6/21 11:04
 * @version: 1.0
 */
@RestController
@RequestMapping("/college/index")
public class IndexController {

    @Autowired
    TbCollegeService tbCollegeService;


    /**
     * @param tbCollege:
     * @return R
     * @author :杨珂
     * @description 获取列表
     * @date 2025/6/25 8:31
     */
    @PostMapping("/getList")
    public R getList(@RequestBody TbCollege tbCollege) {
        return tbCollegeService.getList(tbCollege);
    }


}
